package com.atrix.CinemaView.pojo.dto.info;

import com.atrix.CinemaView.pojo.Container;
import com.atrix.CinemaView.pojo.FileObj;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

@Data
@ApiModel("图片容器信息")
public class PhotoContainerInfo {
    @ApiModelProperty("图片容器名称")
    private String name;
    @ApiModelProperty("图片容器大小（图片数量）")
    private int size;
    
    public PhotoContainerInfo(Container<FileObj> container) {
        this.name = container.getName();
        this.size = container.getSize();
    }
}
